package com.digitalchina.lxnsy.activity.farmVideo;

import android.webkit.JavascriptInterface;

import com.digitalchina.lxnsy.base.BaseHtmlActivity;

/**
 * ================================================
 * 项目名称：android
 * 类描述：我的评论
 * 创建人：rxx
 * 创建时间：2020/1/8 17:26
 * 修改备注：
 * ================================================
 */
public class MyCommentActivity extends BaseHtmlActivity {

    @Override
    protected void loadHtml() {
        webView.addJavascriptObject(new JsApi(), null);
        loadUrl("video-my-comment");
        setTitle("评论");
    }

    @Override
    public void rightOnClick() {

    }

    public class JsApi {
        //去个人主页
        @JavascriptInterface
        public void goPersonInfo(Object msg) {
            go(PersonActivity.class);
        }

        //小视频详情
        @JavascriptInterface
        public void smallVideo(Object msg) {
            go(SmallVideoActivity.class,"msg",msg.toString());
        }

        //农技视频详情
        @JavascriptInterface
        public void goAgriTechVideoDetail(Object msg) {
            go(VideoDetailActivity.class);
        }
    }
}
